<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<div class="ui modal">
  <i class="close icon"></i>
  <div class="header" id="title">
    错误
  </div>
  <div class="image content">
    <div class="image">
      
    </div>
    <div class="description" id ="errMsg" >
      A description can appear on the right
    </div>
  </div>
  <div class="actions">
    
    <div class="ui button" id="hideBtn" onclick="modal_hide()">确定</div>
  </div>
</div>

<script type="text/javascript">
function modal_alert(data){
	 $('#errMsg').text('');
     $('#errMsg').append(data);
     $('.ui.modal').modal('show');
}
function modal_info(data){
	 $('#title').text('');
	 $('#title').append('提示');
	 $('#errMsg').text('');
    $('#errMsg').append(data);
    $('.ui.modal').modal('show');
}
function modal_hide(){
	$('.ui.modal').modal('hide');
}

</script>